Al lanzar los tests obtenemos el siguiente error:
1 timer(s) still in the queue
Para solucionar este problema tenemos que añadir el metodo flush() al final de nuestro test:
necesitamos el siguiente import para utilizar dicho metodo:
import { flush } from '@angular/core/testing';
java | Angular | variable | inicializacion